package com.yenroc.invoice.pojo.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "Header")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class HeaderXmlDTO {
    @XmlElement(name = "EIid")
    private String eIid;

    @XmlElement(name = "EInvoiceTag")
    private String eInvoiceTag;

    @XmlElement(name = "Version")
    private String version;

    @XmlElementRef(name = "InherentLabel")
    private InherentLabelXmlDTO inherentLabel;

    @XmlElementRef(name = "UndefinedLabel")
    private UndefinedLabelXmlDTO undefinedLabel;
}
